package com.example.wtt.entity;

import cn.hutool.core.annotation.Alias;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Painting {
    @Alias("ID")
    @TableId(type = IdType.AUTO)
    private Integer id;
    @Alias("userId")
    @TableField("user_id")
    private Integer userId;
    @Alias("paintUrl")
    private String url;
    @Alias("画作描述")
    private String text;
    @Alias("收藏")
    private Integer favorite;
}
